package com.qiongqi.datadir.service;

import com.qiongqi.datadir.domain.Certificate;
import com.qiongqi.datadir.envm.CertStatus;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface ICertificateService {

    /**
     * 上传文件
     *
     * @param file
     * @return
     * @throws IOException
     */
    public String uploadFile(MultipartFile file) throws IOException;

    /**
     * 查看本节点凭证
     * @return
     * @throws IOException
     */
    public Certificate selectOnlyCertificate() throws IOException;

    /**
     * 保存或者修改凭证
     * @param cert
     * @return
     * @throws IOException
     */
    public int saveOrUpdateCert(Certificate cert) throws IOException;
}
